home *** CD-ROM | disk | FTP | other *** search
- Path: bcfreenet.seflin.lib.fl.us!bcfreenet!z007400b
- From: z007400b@bcfreenet.seflin.lib.fl.us (Ralph Silverman)
- Newsgroups: comp.lang.c
- Subject: Re: cpp question
- Date: 30 Jan 1996 18:42:15 GMT
- Organization: SEFLIN Free-Net - Broward
- Message-ID: <4eloq7$h9u@bcfreenet.seflin.lib.fl.us>
- References: <4drm99$j0m@peabody.colorado.edu>
- NNTP-Posting-Host: bcfreenet.seflin.lib.fl.us
- X-Newsreader: TIN [version 1.2 PL2]
-
- WOOD JAMEY RYAN (woodjr@rintintin.Colorado.EDU) wrote:
- : I have something like this:
-
- : #define USERLEN 8
- : #define HOSTLEN 15
-
- : char name[] = "woodjr";
- : char host[] = "really.long.hostname.com";
- : char s[100];
-
- : sprintf(s, "%.USERLENs@%.HOSTLENs", name, host);
-
- : And I want cpp to parse the sprintf line to:
-
- : sprintf(s, "%.8s@%.15s", name, host);
-
- : Which it (of course) isn't doing. Is there some syntax I
- : can use to get it to do this?
-
- : Thankyou,
- : Jamey Wood
-
- --
- ***********begin r.s. response**********
-
- cpp will not expand macro into
- string bounded by
- ""
- .
-
- ***********end r.s. response************
- Ralph Silverman
- z007400b@bcfreenet.seflin.lib.fl.us
-
-